import 'package:flutter/material.dart';
import 'package:flutter_module/pages/FlutterPage.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {

    return MaterialApp(
      theme: ThemeData(
        primarySwatch: Colors.blue
      ),

      home: Scaffold(
        body: BodyWidget(),
      ),
    );
  }


}

class BodyWidget extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Center(
        child: RaisedButton(child: Text("调用FlutterPage"),onPressed: (){
          print("调用FlutterPage");
          Navigator.push(context, MaterialPageRoute(builder: (context)=> FlutterPage()));

        })
    );
  }

}